<?php
	
$citiao = array(
    array(
        "name"=>"习近平",
        "url"=>'http://www.baidu.com'
    ),
    array(
        "name"=>"李克强",
        "url"=>'http://www.so.com'
    )
);

$content = "中华人民共和国，习近平，李克强，张三！";

foreach ($citiao as $key => $value){
	$citiao[$key]['result'] = strpos($content,$value['name']);
	$citiao[$key]['link_name'] = "<a href='".$value['url']."' target='_blank'>".$value['name']."</a>";
	$content = str_replace($citiao[$key]['name'],$citiao[$key]['link_name'],$content);
}

print_r($content);


?>